from ForthClass.Person import Person


class Sunny(Person):
    def __init__(self, name, age, score):
        super(Sunny, self).__init__(name, age)
        self.score = score

    def prn(self):
        Person.main(self)
        print("成绩：", self.score)


name = input("请输入姓名:")
age = input("请输入年龄:")
score = input("请输入分数:")
s = Sunny(name, age, score)  # 实例化子类对象
s.prn()     # 调用子类方法
